import {createAPI} from '@/utils/request'
import { get } from 'https';

export const list = data => createAPI('/system/sys-role/roleList', 'get', data)
// export const simple = data => createAPI('/sys/role/simple', 'get', data)
export const add = data => createAPI('/system/sys-role/add', 'post', data)
export const update = data => createAPI('/system/sys-role/edit', 'post', data)
export const remove = data => createAPI('/system/sys-role/del', 'get', data)
export const detail = data => createAPI('/system/sys-role/info', 'get', data)
export const setPrem = data => createAPI('/system/sys-role/setPrem', 'post', data)
export const findAll = data => createAPI('/system/sys-role/roleListAll','get',data)
